#ifndef __PLATFORM_LIB_ARG_H__
#define __PLATFORM_LIB_ARG_H__
#ifdef __cplusplus
extern "C"
{
#endif

#include "pf_common.h"

/******************************************************************************************************/

typedef struct pf_arg pf_arg_t;

/*********************************************************************************************
Function Name:  pf_arg_parse
Description  :  Parse args and return pf_arg
Inputs       :  
Outputs      :  
ErrorCodes   :
History      :
---------------------------------------------------------------------------------------------
Author                 Date                          Comments
yanghz                 2011-06-25                    create
**********************************************************************************************/
extern pf_arg_t* pf_arg_parse(int argc, char** argv);

/*********************************************************************************************
Function Name:  pf_arg_find
Description  :  Find name from pf_arg
Inputs       :  
Outputs      :  
ErrorCodes   :
History      :
---------------------------------------------------------------------------------------------
Author                 Date                          Comments
yanghz                 2011-06-25                    create
**********************************************************************************************/
extern const char* pf_arg_find(const pf_arg_t* arg, const char* name);

/*********************************************************************************************
Function Name:  pf_arg_exec
Description  :  Get argv[0]
Inputs       :  
Outputs      :  
ErrorCodes   :
History      :
---------------------------------------------------------------------------------------------
Author                 Date                          Comments
yanghz                 2011-06-25                    create
**********************************************************************************************/
extern const char* pf_arg_exec(const pf_arg_t* arg);

/*********************************************************************************************
Function Name:  pf_arg_clear
Description  :  Clear pf_arg
Inputs       :  
Outputs      :  
ErrorCodes   :
History      :
---------------------------------------------------------------------------------------------
Author                 Date                          Comments
yanghz                 2011-06-25                    create
**********************************************************************************************/
extern int pf_arg_clear(pf_arg_t* arg);

/******************************************************************************************************/

#ifdef __cplusplus
}
#endif
#endif /* #ifndef __PLATFORM_LIB_ARG_H__ */


